<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>顶一下</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="../skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
<link href="{SKIN_PATH}digg.css" rel="stylesheet" type="text/css"/>
</head>
<body>

{template 'header.html'}

<div class="container">

	<div class="aside">
    	<div class="head">本周关注度最高{$catname}</div>
            <div>
              <ul>
        {get sql="select d.contentid,d.supports,c.title,c.style,c.thumb,c.url,c.inputtime from table_digg d left join table_content c on d.contentid=c.contentid where c.status=99 $where order by d.supports_week desc" rows="10"}
        <li><span>({$r[supports]})</span><a href="{url($r[url])}" target="_blank"><font class="{$r[style]}">{str_cut($r[title], 44)}</font></a></li>
        {/get}
              </ul>
            </div>
           <div class="head">本月关注度最高{$catname}</div>
            <div>
              <ul>
        {get sql="select d.contentid,d.supports,c.title,c.style,c.thumb,c.url,c.inputtime from table_digg d left join table_content c on d.contentid=c.contentid where c.status=99 $where order by d.supports_month desc" rows="10"}
        <li><span>({$r[supports]})</span><a href="{url($r[url])}" target="_blank"><font class="{$r[style]}">{str_cut($r[title], 44)}</font></a></li>
        {/get}
         </ul>
        </div>
    </div>
    
    <div class="main">
    	<div>当前位置：<a href="">首页</a> » <a href="{$M[url]}">顶一下</a>{if $catid}»<a href="{$M[url]}?catid={$catid}">{$catname}</a>{/if}</div>
        
        <style type="text/css">
			.diggs{}
			.diggs dl{
				clear:both; height:auto; overflow:hidden; margin:0 0 20px 0; border-bottom:#ccc dashed 1px;
			}
			.diggs dl dt{
				float:right; display:inline; width:600px;
			}
			.diggs dl dd{
			}
			.diggs .pic{
				height:60px; float:left; display:inline; text-align:center; margin:0 10px 10px 0px;
			}
			.diggs .pic strong{
				background:#578CCA; color:#fff; border-radius:5px 5px 5px 5px; padding:2px; margin:2px; font-size:11px;	
			}
		</style>
        <!--begin 评论列表-->
        <div class="commentbox">
          <div class="head">今日关注度最高{if $catid}<a href="{$caturl}">{$catname}</a>{/if}</div>
     
     <div class="diggs">
    {get sql="select d.contentid,d.supports,c.catid,c.title,c.style,c.thumb,c.url,c.description,c.inputtime,c.userid from table_digg d left join table_content c on d.contentid=c.contentid where c.status=99 $where order by d.supports_day desc" rows="15" page="$page"}
     <dl>
        <dt><a href="{url($r[url])}" target="_blank"><span class="{$r[style]}">{$r[title]}</span></a></dt>
        <dd class="pic"><span><strong>{$r[supports]}</strong></span></dd>
        <dd class="text">{str_cut($r[description], 180, '...')}</dd>
        <dd class="attribute">{username($r[userid])}发布时间：{date('Y-m-d', $r[inputtime])}　栏目：<a href="{$CATEGORY[$r[catid]][url]}">{$CATEGORY[$r[catid]][catname]}</a></dd>
    </dl>
    {/get}
    </div>
    {if $pages}<p class="pagination">{$pages}</p>{/if}
    </div>
    <!--end 评论列表--> 
    
    </div>

</div>

{template 'footer.html'}